package com.sjy;

import com.sjy.util.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@MapperScan("com.sjy.dao.mapper")
@SpringBootApplication(scanBasePackages = {"com.sjy","com.sjy.util"})
@RestController
public class BPEngineStarter {
    public static void main(String[] args) {
        SpringApplication.run(new Class[]{BPEngineStarter.class, SpringUtil.class}, args);
    }

    @GetMapping("/hello")
    public String hello() {
        return "Hello, world";
    }
}
